//
//  FortuneReusableView.m
//  SmileWeather
//
//  Created by lanou3g on 15/9/17.
//  Copyright (c) 2015年 陶天海. All rights reserved.
//

#import "FortuneReusableView.h"

@implementation FortuneReusableView

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        
        self.starChild = [[UILabel alloc]initWithFrame:CGRectMake(15, 0, frame.size.width / 2, frame.size.height * 2 / 3)];
        self.starChild.textColor = [UIColor whiteColor];
        self.starChild.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.starChild];
        
        self.fuLabel = [[UILabel alloc]initWithFrame:CGRectMake(self.starChild.frame.size.width, 0, frame.size.width / 2, frame.size.height * 2 / 3)];
        self.fuLabel.textAlignment = NSTextAlignmentRight;
        self.fuLabel.textColor = [UIColor whiteColor];
        self.fuLabel.font = [UIFont systemFontOfSize:15];
        [self addSubview:self.fuLabel];
        
        self.whiteLine = [[UIView alloc]initWithFrame:CGRectMake(15, frame.size.height * 2 / 3,frame.size.width - 30, 1)];
        self.whiteLine.backgroundColor = [UIColor whiteColor];
        [self addSubview:self.whiteLine];
        
    }
    return self;
}
- (void)setTitle:(NSString *)title
{
    _title = title;
    self.starChild.text = _title;
}
//没用上这个
- (void)setFuTitle:(NSString *)fuTitle
{
    _fuTitle = fuTitle;
    self.fuLabel.text = _fuTitle;
}





@end
